<template>
  <div class="container">
    已完成{{isComplete}} / 全部{{all}}
  </div>
  <div v-if="isComplete > 0" class="btn">
    <button @click="clear">清除已完成</button>
  </div>
</template>


<script>
import {defineComponent, ref} from 'vue'
export default defineComponent({
   name: 'navFooter',
   setup() {
      let isComplete = ref(1)
      let all = ref(3)
      return {
        isComplete,
        all
      }
   }
})

</script>

<style lang="scss" scoped>
.container {
  display: flex;
  align-items: center;
  .btn {
    margin-right: 20px;
  }
}
</style>